apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: localpathprovisioners.deckhouse.io
  labels:
    heritage: deckhouse
    module: local-path-provisioner
spec:
  group: deckhouse.io
  scope: Cluster
  names:
    plural: localpathprovisioners
    singular: localpathprovisioner
    kind: LocalPathProvisioner
  preserveUnknownFields: false
  versions:
  - name: v1alpha1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        description: |
          Parameters of the `local-path-provisioner` instance.
        properties:
          spec:
            type: object
            required:
            - path
            properties:
              nodeGroups:
                type: array
                items:
                  type: string
                description: |
                  Select nodeGroups for storageClass allowedTopologies.
                x-doc-examples:
                - - master
                  - worker
              path:
                type: string
                description: |
                  Node root path for PV's.
                x-doc-examples: ["/opt/local-path-provisioner"]
              reclaimPolicy:
                type: string
                enum: ["Retain", "Delete"]
                default: "Retain"
                description: |
                  Retain policy for PV's.
